<template>
  <div>
    <Header></Header>
    <!-- 修改路由切换过渡效果 -->
    <div class="conunt">
      <transition name="fade" mode="out-in">
        <router-view></router-view>
      </transition>
    </div>
    <Footer></Footer>
  </div>
</template>

<script>
import Header from "../components/header.vue";
import Footer from "../components/footer.vue";

export default {
  components: { Header, Footer },
};
</script>

<style lang="less" scoped>
.conunt {
  min-height: 700px;
}
.fade-enter-active,
.fade-leave-active {
  transition: all 0.4s;
}
.fade-enter,
.fade-leave-to {
  opacity: 0;
}
</style>